#!/usr/bin/env bash
# ------------------------------------------------------------------------------
eval $DeBug
# ------------------------------------------------------------------------------
cmd_base=$(dirname $0)
# ------------------------------------------------------------------------------
go build varmGetter2.go
# ------------------------------------------------------------------------------
export STOMP_ACKMODE=client
export STOMP_PBC=0
# ------------------------------------------------------------------------------
cqn=1
while [ "$cqn" -le "99" ]; do
	echo "---------------------------------------------------------------------"
	ncmd="STOMP_DEST=/queue/varmGetter.${cqn} STOMP_NMSGS=${cqn} ./varmGetter2"
	echo "Next Puts: ${ncmd}"
	eval ${ncmd}
	let cqn=cqn+1
done
# ------------------------------------------------------------------------------
set +x
